package com.string;

public class StringFilter {
public static void main(String[] args) {
	//String str="hi*how#are_you&dear";
	String x="hello";
	String y="open";
	for(char ch:y.toCharArray()){
		if(x.indexOf(String.valueOf(ch))>=0){
			x=x.replaceAll(String.valueOf(ch), "");
		}
	}
	System.out.println(x);
}
}
